{extend name="layout:default" /}
{block name="title"}修改{/block}
{block name="content"}
<div class="box box-default">
    <div class="box-header with-border">
        <h3 class="box-title">修改分类</h3>
    </div>
    <!-- /.box-header -->
    <div class="box-body">
            <a href="{:url('index')}" class="btn btn-info">返回</a>

        <form class="form-horizontal" method="post" enctype="multipart/form-data">
            <div class="form-group">
                <label class="col-sm-2 control-label">分类名称</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" value="{$category.name}" name="name" placeholder="分类名称">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">排序</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" value="{$category.sort}" name="sort" placeholder="排序">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">状态</label>
                <div class="col-sm-10">
                    <input type="radio"   value="1" name="status" <?php if($category->status === 1){echo 'checked';}?>>正常
                    <input type="radio"   value="2" name="status" <?php if($category->status === 2){echo 'checked';}?>>禁用
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-4">
                    <button type="submit" class="btn btn-info pull-right">提交</button>
                </div>
            </div>
        </form>
    </div>
    <!-- /.box-body -->
</div>
{/block}